package com.test2015.Swing.popup.pf;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JTextField;

public class MyTooltip extends javax.swing.JToolTip {
	JButton jButton1 = new JButton();
	FlowLayout flowLayout1 = new FlowLayout();
	JTextField jTextField1 = new JTextField();

	public MyTooltip() {
		try {
			jbInit();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public void setTipText(String tipText) {
		super.setTipText(tipText);
		// button.setText(tipText);
	}

	private void jbInit() throws Exception {
		// jLabel1.setMaximumSize(new Dimension(400, 300));
		// jLabel1.setMinimumSize(new Dimension(400, 300));
		// jLabel1.setPreferredSize(new Dimension(400, 300));
		jButton1.setText("This is a button included in the tool tip.");
		this.setLayout(flowLayout1);
		this.setOpaque(true);
		jTextField1.setText("jTextField1");
		this.add(jButton1, null);
		this.add(jTextField1, null);
	}

}
